Optimal. Leaf size=297 \[ \frac {a (d-e x) (d+e x)^{1+n}}{2 c \left (c d^2+a e^2\right ) \left (a+c x^2\right )}+\frac {\left (\sqrt {-a} d e n-\frac {2 c d^2+a e^2 (2+n)}{\sqrt {c}}\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 c \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}-\frac {\left (2 c d^2+\sqrt {-a} \sqrt {c} d e n+a e^2 (2+n)\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 c^{3/2} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 297, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {1663, 845, 70}
\begin {gather*} -\frac {(d+e x)^{n+1} \left (\sqrt {-a} \sqrt {c} d e n+a e^2 (n+2)+2 c d^2\right ) \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 c^{3/2} (n+1) \left (\sqrt {-a} e+\sqrt {c} d\right ) \left (a e^2+c d^2\right )}+\frac {(d+e x)^{n+1} \left (\sqrt {-a} d e n-\frac {a e^2 (n+2)+2 c d^2}{\sqrt {c}}\right ) \, _2F_1\left (1,n+1;n+2;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 c (n+1) \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (a e^2+c d^2\right )}+\frac {a (d-e x) (d+e x)^{n+1}}{2 c \left (a+c x^2\right ) \left (a e^2+c d^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 845
Rule 1663
Rubi steps
\begin {align*} \int \frac {x^3 (d+e x)^n}{\left (a+c x^2\right )^2} \, dx &=\frac {a (d-e x) (d+e x)^{1+n}}{2 c \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\int \frac {(d+e x)^n \left (\frac {a^2 d e n}{c}-\frac {a \left (2 c d^2+a e^2 (2+n)\right ) x}{c}\right )}{a+c x^2} \, dx}{2 a \left (c d^2+a e^2\right )}\\ &=\frac {a (d-e x) (d+e x)^{1+n}}{2 c \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\int \left (\frac {\left (\frac {\sqrt {-a} a^2 d e n}{c}+\frac {a^2 \left (2 c d^2+a e^2 (2+n)\right )}{c^{3/2}}\right ) (d+e x)^n}{2 a \left (\sqrt {-a}-\sqrt {c} x\right )}+\frac {\left (\frac {\sqrt {-a} a^2 d e n}{c}-\frac {a^2 \left (2 c d^2+a e^2 (2+n)\right )}{c^{3/2}}\right ) (d+e x)^n}{2 a \left (\sqrt {-a}+\sqrt {c} x\right )}\right ) \, dx}{2 a \left (c d^2+a e^2\right )}\\ &=\frac {a (d-e x) (d+e x)^{1+n}}{2 c \left (c d^2+a e^2\right ) \left (a+c x^2\right )}-\frac {\left (2 c d^2+\sqrt {-a} \sqrt {c} d e n+a e^2 (2+n)\right ) \int \frac {(d+e x)^n}{\sqrt {-a}-\sqrt {c} x} \, dx}{4 c^{3/2} \left (c d^2+a e^2\right )}-\frac {\left (\sqrt {-a} d e n-\frac {2 c d^2+a e^2 (2+n)}{\sqrt {c}}\right ) \int \frac {(d+e x)^n}{\sqrt {-a}+\sqrt {c} x} \, dx}{4 c \left (c d^2+a e^2\right )}\\ &=\frac {a (d-e x) (d+e x)^{1+n}}{2 c \left (c d^2+a e^2\right ) \left (a+c x^2\right )}+\frac {\left (\sqrt {-a} d e n-\frac {2 c d^2+a e^2 (2+n)}{\sqrt {c}}\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{4 c \left (\sqrt {c} d-\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}-\frac {\left (2 c d^2+\sqrt {-a} \sqrt {c} d e n+a e^2 (2+n)\right ) (d+e x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{4 c^{3/2} \left (\sqrt {c} d+\sqrt {-a} e\right ) \left (c d^2+a e^2\right ) (1+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.71, size = 247, normalized size = 0.83 \begin {gather*} -\frac {(d+e x)^{1+n} \left (\frac {2 a \sqrt {c} (-d+e x)}{a+c x^2}+\frac {\left (2 c d^2-\sqrt {-a} \sqrt {c} d e n+a e^2 (2+n)\right ) \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{\left (\sqrt {c} d-\sqrt {-a} e\right ) (1+n)}+\frac {\left (2 c d^2+\sqrt {-a} \sqrt {c} d e n+a e^2 (2+n)\right ) \, _2F_1\left (1,1+n;2+n;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{\left (\sqrt {c} d+\sqrt {-a} e\right ) (1+n)}\right )}{4 c^{3/2} \left (c d^2+a e^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {x^{3} \left (e x +d \right )^{n}}{\left (c \,x^{2}+a \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^3\,{\left (d+e\,x\right )}^n}{{\left (c\,x^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________